cmake_minimum_required(VERSION 3.0.2)
project(getch_and_kbhit)

include_directories(include)
link_directories(lib)

set(CMAKE_LIBRARY_OUTPUT_DIRECTORY ${CMAKE_SOURCE_DIR}/lib)
add_library(conio  SHARED ${CMAKE_SOURCE_DIR}/src/conio.cpp)
add_library(kbhit SHARED ${CMAKE_SOURCE_DIR}/src/kbhit.cpp)
add_executable(main src/main.cpp)
target_link_libraries(main kbhit conio)

